home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20041116-20060924
/
000260_scottac@nb.sympatico.ca_Thu Mar 9 09:28:51 2006.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!panix!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!nf3.bellglobal.com!ursa-nb00s0.nbnet.nb.ca!53ab2750!not-for-mail
From: "Scott Caissie" <scottac@nb.sympatico.ca>
Newsgroups: comp.protocols.kermit.misc
Subject: closing a macro completely upon connect
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <uGRPf.40748$VV4.591414@ursa-nb00s0.nbnet.nb.ca>
Date: Thu, 09 Mar 2006 08:28:10 GMT
NNTP-Posting-Host: 156.34.15.45
X-Complaints-To: abuse@aliant.net
X-Trace: ursa-nb00s0.nbnet.nb.ca 1141892890 156.34.15.45 (Thu, 09 Mar 2006 04:28:10 AST)
NNTP-Posting-Date: Thu, 09 Mar 2006 04:28:10 AST
Organization: Aliant Internet
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15510
Hi, I have a little problem with a macro I have. I get "Macros nested too
deeply" when used many times in a row.
K95 2.1.3, wy370? I think is the layout.
I have a hotkey which runs a quick macro.
It switches from the Terminal to the Command window to process the info.
Then when it is done, it goes back to the Terminal window via the Connect
command.
(I know this is a bug. I'm still waiting for the fix, but this method has
been working for me in general. But seriously I want that fix so badly).
Now when I keep using the "same" macro over and over again, it seems that
its not closing properly.
I get a message saying "Macros nested too deeply". It is doing this
predictably at 20 tries.
I can't post the all the code here but I'll post how I'm starting/ending the
macro:
define XXXX {
local \%x
local \%y
undeclare \&a
undeclare \&b
declare \&a[50]
declare \&b[50]
save terminal scrollback scroll.txt
file count /lines
fseek 0 /line \v(count)-30 (syntax might be off, I'm going from memory here.
its basically going to the last 30 lines of the file. The arrays are used to
store each line as well as additional info)
......
can't really post whats here.
......
file close all
undeclare \&a
undeclare \&b
connect
return
}
Now the users never go to the Command window on their own. Nor are they ever
expected to. Pressing the hotkey basically makes the screen blink as it
switches to the command and back to the terminal in a split second.
The "Connect" command is basically disabling the the rest of the code from
doing its job while you are in the Terminal which includes it's own
completion. Altnernating macros seems to be ok. But using the same one over
and over is a problem.
I can't think of any other reason why I'm getting the "Macros nested too
deeply" error aside from the macros not ending right.
- Scott